//
//  WBNavigationController.swift
//  SinaApp
//
//  Created by shui on 2018/3/22.
//  Copyright © 2018年 shui. All rights reserved.
//

import UIKit

class WBNavigationController: UINavigationController {    
    
    //重写 push 方法,所有 push 动作都会调用此方法
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        //隐藏底部的 taBar,根控制器不需要隐藏
        if childViewControllers.count > 0 {
          viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: true)
    }


}
